﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowImgEdit.aspx.cs" Inherits="SystemManager_ShowImgEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>上传封面图片</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script src="../ScriptFile/jquery.js"></script>
    <script type="text/javascript">

        $(function() {
            $("#btnSubmit").click(function () {
                if (!$("#upfile").val()) {
                    alert("选择上传文件");
                    return false;
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="center">
                       <div>
                           上传文件：
                        <asp:FileUpload ID="upfile" runat="server" />
                       </div>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <img runat="server" id="showImg" width="350" height="250" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <div id="message" runat="server">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="NewButton" OnClick="btnSubmit_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
